class · System

Tuple<T1, T2>

public class System.Tuple<T1, T2> : System.Any, System.IToString, System.IHashable<System.Tuple<T1, T2>>

2 items in an object: Item1…Item2, fixed when it is made.

Kind
class
Namespace
System
Assembly
System.Core
Access
public, record
Source file
Tuples.ant

Type parameters

NameConstraints
T1any type
T2any type

Inheritance

Base classes
Any Tuple<T1, T2>
Interfaces
IToString IHashable<TSelf>

Constructors

constructor Tuple(Item1: T1, Item2: T2)
#

Methods

method ToValueTuple() -> System.ValueTuple<T1, T2>
#

The same items in a ValueTuple.

method ToString() -> System.String<u8>
#

override

method Hash() -> u64
#

override

method Equals(other: System.Tuple<T1, T2>) -> bool
#

Fields

field Item1: T1
#
field Item2: T2
#

Inherited members (3)

Source

Tuple<T1, T2> as Larva HIR, decompiled from its Larva HIR.

System.Tuple`2.hir
// 2 items in an object: Item1…Item2, fixed when it is made.
public class System.Tuple<T1, T2> : System.Any, System.IToString, System.IHashable<System.Tuple<T1, T2>>
{
    field Item1: T1
    field Item2: T2
    constructor Tuple(Item1: T1, Item2: T2)
    // The same items in a ValueTuple.
    method ToValueTuple() -> System.ValueTuple<T1, T2>
    method ToString() -> System.String<u8>
    method Hash() -> u64
    method Equals(other: System.Tuple<T1, T2>) -> bool
}
Esc